//
//  UIView+Extension.swift
//  HJSinaWeibo
//
//  Created by a-375 on 2017/9/6.
//  Copyright © 2017年 夏航军. All rights reserved.
//

import UIKit

extension UIView {
    
   @IBInspectable var cornerRadius : CGFloat {
        set {
            layer.cornerRadius = newValue;
            layer.masksToBounds = newValue > 0;
        }
        
        get {
            return layer.cornerRadius;
        }
    }
    
}
